package com.visionvera.myapplication;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by dongyukun on 2017/9/25.
 */

public class TerminalAdapter extends BaseQuickAdapter<TestBean, BaseViewHolder> {
    public TerminalAdapter(@LayoutRes int layoutResId, @Nullable List<TestBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TestBean item) {
        helper.setText(R.id.title_tv, item.title).setText(R.id.msg_tv, "" + item.msg);
    }

}
